import request from '../utils/request'

export interface CategoryModel {
  categoryGroupList: Array<any>,
  categoryL1List:Array<any>,
  categoryL2List:Array<any>,
  currentCategory:Array<any>,
  id: number,
  picUrl: string
}

  
  export default {
    getCategory1List() {
      return request.get<any, any>(`item/cateList.json?__timestamp=1681127232904&categoryId=`)
    },
    getCategory1ListId(id?:number) {
      return request.get<any, any>(`item/cateList.json?__timestamp=1681127232904&categoryId=${id}`)
    }
}

